package com.pattern.design.designpattern.Celve;

/**
 * author:harisucici on 2018/10/9 15:22
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public class PriceCalculator {
    private Price price;
    public PriceCalculator(){

    }

    /**
     * Set price.
     *
     * @param price the price
     */
    public void setPrice(Price price){
        this.price = price;
    }

    /**
     * Make price int.
     *
     * @param km the km
     * @return the int
     */
    public int makePrice(int km){
        return price.makePrice(km);
    }

}
